import request from './request'

export function login(url, params) {
  return request({
        url: url,
        method: 'post',
        data: params
  })
}

export function getInfo(url, token) {
    return request({
          url: url,
          method: 'post',
          data: { token }
    })
  }


export function logout(url,params){   //不用带参数，后端获取cookie删除redies中token
      return request({
            url: url,
            method: 'post',
            data:params
      })
}
  
